package com.gree.scmservice.entity.saas;


import com.fasterxml.jackson.annotation.JsonFormat;
import com.gree.common.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.Id;
import org.nutz.dao.entity.annotation.Table;

import java.time.LocalDateTime;
import java.util.Date;


@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@Table("SAAS_SYS_ADDON")
@ApiModel(description = "插件信息")
public class SaasSysAddon extends BaseEntity
{

    /** 主键 */
    @Id
    @ApiModelProperty("主键")
    private Long addon_id;

    /** 插件名 */
    @Column
    @ApiModelProperty("插件名")
    private String name;

    /** 类型 */
    @Column
    @ApiModelProperty("类型")
    private Integer type;

    /** 图标 */
    @Column
    @ApiModelProperty("图标")
    private String icon;

    /** 描述 */
    @Column
    @ApiModelProperty("描述")
    private String desa;

    /** 状态 */
    @Column
    @ApiModelProperty("状态(1:解锁2：锁定)")
    private Integer status;

    /** 作者 */
    @Column
    @ApiModelProperty("作者")
    private String author;

    /** 版本 */
    @Column
    @ApiModelProperty("版本")
    private String version;

    /** 详情 */
    @Column
    @ApiModelProperty("详情")
    private String content;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Column
    @ApiModelProperty("创建时间")
    private LocalDateTime create_time;

    public void saasSysAddonNoPage()
    {
        super.setBaseEntityNull();
    }
}